package com.commons.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author mis_wu
 * @date 2022/3/13 11:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel(value = "电影用户信息表")
public class MovieUserInfo implements Serializable {

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空!")
    private Long userId = -1L;

    @ApiModelProperty("用户名")
    @NotNull(message = "用户名不能为空!")
    private String userName;

    @ApiModelProperty("用户登陆密码")
    @NotNull(message = "用户密码不能为空!")
    private String userPassword;

    /**
     * 用户头像
     */
    private String userAvatar;

    /**
     * 0正常   1异常
     */
    private Integer userState = 0;
    private Date registerTime;
    private String userDescript;
}
